#include <iostream>
#include <iomanip>
#include <string>
#include <clocale>
//#include "Bit.h"
//#include "Bitstr.h"
//#include "Digsim.h"
//#include "Omvandla.h"
#include <bitset>

using namespace std;

void Binary_to_Decimal(string str)
{
	cout << bitset<8>(str).to_ulong() << endl;
}

void Decimal_to_Binary(int tal)
{
	cout << bitset<8>(tal) << endl;
}

int main()
{
	setlocale (LC_ALL, "swedish");

	Binary_to_Decimal("00000001");

	Decimal_to_Binary(-255);

	cout << endl;
	system("PAUSE");
	return 0;
}